package com.siwei.mes.entity.experiment;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;


/**
 * 快检/批检与试验台账和小票的关系(ExperimentCheckItemorder)实体类
 *
 * @author linzi
 * @since 2024-01-11 21:56:10
 */
@Data
@Accessors(chain = true)
@Table(name = "pk_experiment_check_itemorder")
@ApiModel(value = "ExperimentCheckItemorder", description = "快检/批检与试验台账和小票的关系")
public class ExperimentCheckItemorder implements Serializable {
    private static final long serialVersionUID = -50030789850227954L;
    /**
     * 主键id
     */
    @Id
    @ApiModelProperty(value = "快检/批检与试验台账和小票的关系主键ID", name = "id")
    private Long id;
    /**
     * 试验台账id
     */
    @Column(name = "experiment_id")
    @ApiModelProperty(value = "试验台账id", name = "experimentId")
    private Long experimentId;

    @Column(name = "check_id")
    @ApiModelProperty(name = "对应快检/批检主键id")
    private Long checkId;

    /**
     * 小票id
     */
    @Column(name = "itemorder_id")
    @ApiModelProperty(value = "小票id", name = "itemorderId")
    private Integer itemorderId;
    /**
     * 类型 1-快检 2-批检
     */
    @Column(name = "check_type")
    @ApiModelProperty(value = "类型 1-快检 2-批检", name = "checkType")
    private Integer checkType;
    /**
     * 创建时间
     */
    @Column(name = "create_time")
    @ApiModelProperty(value = "创建时间", name = "createTime")
    private Date createTime;

    @Column(name = "tpz")
    @ApiModelProperty(value = "砼品种")
    private String tpz;

    @Column(name = "phb")
    @ApiModelProperty(value = "配合比")
    private String phb;

    @Column(name = "rwdh")
    @ApiModelProperty(value = "任务单号")
    private String rwdh;

    @Column(name = "gcmc")
    @ApiModelProperty(value = "工程名称")
    private String gcmc;

    /**
     * 试验项目code
     */
    @Column(name = "test_code")
    @ApiModelProperty(value = "试验项目code", name = "testCode")
    private String testCode;
    /**
     * 试验项目名称
     */
    @Column(name = "test_name")
    @ApiModelProperty(value = "试验项目名称", name = "testName")
    private String testName;

    /**
     * 混凝土生产方量
     */
    @Transient
    @ApiModelProperty(value = "混凝土生产方量", name = "scquantity")
    private Float scQuantity;

    @Transient
    @ApiModelProperty(value = "混凝土发货方量")
    private Float fhQuantity;

    @Transient
    @ApiModelProperty(value = "对应小票的任务id")
    private Long taskId;

    @Transient
    @ApiModelProperty(value = "erp小票创建时间")
    private Date erpCreateTime;
}
